package com.rlz.base.tools.expand

import android.view.View
import com.rlz.drawable.helper.Shape

/**
 * Created by RLZ
 * on 2021/4/16
 *
 * View的相关扩展函数
 */

fun View.show() {
    this.visibility = View.VISIBLE
}

fun View.hide() {
    this.visibility = View.INVISIBLE
}

fun View.gone() {
    this.visibility = View.GONE
}

fun View.bg(color: Int, radius: Float) {
    this.background = Shape.sp(color, radius)
}